<form id="answer_form">
    <input name="question_ids" type="hidden" th:value="${qids}">
    <fieldset class="layui-elem-field" th:each="ls:${answers_list}">
        <legend th:text="${'('+ls.question_type+')'+ls.question_title}"></legend>
        <div class="layui-field-box">
            <div th:utext="${ls.question_choice}"></div>
            <div th:if="${ls.id ne 0}" th:text="${'答题：'+ls.my_answers}" style="margin-top:10px;"></div>
            <div style="margin-top:10px;" th:if="${ls.id eq 0}">
                输入答案：
                <input th:name="${'answers'+ls.qsid}" th:if="${ls.question_type eq '单选题' || ls.question_type eq '多选题'}"
                       type="text" placeholder="请输入" autocomplete="off" class="layui-input" style="width:230px;">
                <textarea th:name="${'answers'+ls.qsid}"
                          th:if="${ls.question_type ne '单选题' && ls.question_type ne '多选题'}"
                          style="width:450px;height:220px" class="layui-input" rows="3" cols="20"></textarea>
            </div>
            <div style="margin-top:10px;" th:if="${ls.correcting_status eq '1'}">
                <button class="layui-btn layui-btn-mini" th:if="${ls.iscorrect eq '0'}">回答正确</button>
                <button class="layui-btn layui-btn-mini" style="background-color: #FF5722;"
                        th:if="${ls.iscorrect eq '1'}">回答错误
                </button>
            </div>
        </div>
    </fieldset>
</form>